from django.conf.urls import url

from rest_api.views import *

urlpatterns = [
    url(r'^sendMessage/$', PostSendMessage.as_view(), name='发送短信验证码'),
    url(r'^uploadImg/$', UpdatePic.as_view(), name='上传图片'),
    url(r'^updateVideo/$', UpdateVideo.as_view(), name='上传图片'),
    url(r'^versionInfo/(?P<VERSION>.*)/$', VersionInfo.as_view(), name='获取应用版本信息'),
    url(r'^getHardwareVersion/$', GetHardwareVersion.as_view(), name='获取固件版本信息'),
    url(r'^getCommonProblePage/$', CommonProble.as_view()),
    url(r'^postCommonProble/$', CommonProble.as_view()),
    url(r'^getCommonProbleContent/(?P<pk>[0-9]*)/$', CommonProbleUD.as_view()),
    url(r'^delCommonProble/(?P<pk>[0-9]*)/$', CommonProbleUD.as_view()),
    url(r'^updateCommonProble/(?P<pk>[0-9]*)/$', CommonProbleUD.as_view()),
]
